<?php
	session_start();
	//session_destroy();
?>
<div class="wraptop">
    <div class="topbar">
        <div class="logo-ibid">
            <a href=""><img src="../images/logo.png" /></a>
        </div>
        <div class="slo">DỊCH VỤ ĐẤU GIÁ ONLINE - PROJECT TMĐT</div>
        <div class="frame-login">
            <div style="height: 10px; clear: both">
            </div>
            <div style="height: 30px; clear: both">
            </div>
            <div style="height: 20px; clear: both">
            </div>
            <div id="Header1_pnNotLogin">
                <p style="float: right">
                	<?php
						if (!isset($_SESSION['username'])){
							echo '<a id="Header1_lnkReg" class="bt-dn" href="register.php">Đăng ký</a>';
							echo '<a id="Header1_lnkLogin" class="bt-dn" href="login.php">Đăng nhập</a>';	
						}
						else{
							echo '<a id="Header1_lnkLogin" class="bt-dn" href="logout.php">Đăng xuất</a>';
						}
					?>
                </p>      
			</div>
            <div style="height: 10px; clear: both">
            </div>
        </div>
    </div>
</div>


<div class="header">
    <div class="frame-img">
        <div class="wrapimgtop">
            <div class="imgtop">
                <img src="../images/Banner-bid-4.gif"></div>
        </div>
        <?php
			if (!isset($_SESSION['username'])){
		?>
        <div id="Header1_Intro1_pnMemberNotLogin">
            <div class="links">
                <div class="link1">
                    <a href="news.php?id=12">Thông báo</a>
                </div>
                <div class="link2">
                    <a href="news.php?id=13">Thông tin khẩn</a>
                </div>
                <div class="link3">
                    <a href="news.php?id=14">Chương trình khuyến mãi</a>
                </div>
            </div>
    	</div>
        <?php }else{?>
        <div id="divMember">
			<div class="links">
				<br />
				<p style="text-align:center">
            		Xin chào : <b><span id="Header1_Intro1_Member1_lbLoginName"><?php if (isset($_SESSION['username'])) echo $_SESSION['username']; ?></span></b>
				</p>
                <br />
				<div class="line"></div>
                <div class="imgvang">
					<img src="../images/imh-vang.png"></div> &nbsp; x 
                <span id="" class="giahome">0</span>
				<label class="lbl">Bid Vàng</label>
                <div class="line"></div>
                <div class="imgthoc">
					<img src="../images/img-thoc.png"> &nbsp; x 
                    <span id="" class="giahome">200</span>
                    <label class="lbl">Bid Thóc</label>
                </div>
                <div class="line"></div>
                <div style="clear: both; height: 10px;"></div>
                <a target="_blank" href="" class="btleft">MUA BID </a>
				<a href="" class="btright">KHUYẾN MÃI</a>
			</div>
        </div>
        <?php } ?>
    </div>
    <div style="clear: both; height: 5px;">
	</div>
    <div class="menutop">
        <ul>
            <li><a href="index.php">TRANG CHỦ</a></li> 
            <li><a href="dangdau.php">ĐANG ĐẤU</a></li>
            <li><a href="sapdau.php">SẮP ĐẤU</a></li>
            <li><a href="dadau.php">ĐÃ ĐẤU</a></li>
            <li><a href="news.php?id=01">GIỚI THIỆU</a></li>
            <li><a href="news.php?id=09">LIÊN HỆ</a></li>
            <li><a href="news.php?id=10">HỎI ĐÁP</a></li>
            <li><a href="news.php?id=05">CÁCH CHƠI</a></li>
            <li style="width:32px;"><a href=""><img style="margin-top:-5px;" src="../images/Hot.gif" /></a></li>
        </ul>
    </div>
</div>